home *** CD-ROM | disk | FTP | other *** search
/ Maplin Electronics Catalogue 2001 Winter / Maplins Catalogue Winter 2001.iso / IE5 / IEW2K_2.CAB / msieftp.dll / HTML / FTPNT5.HTT < prev   
Text File  |  2000-06-06  |  11KB  |  317 lines

  1. <!-- 
  2. * Copyright 1999 Microsoft Corporation.  All rights reserved.
  3. * This file was automatically generated by Microsoft Internet Explorer
  4. * using the file %TEMPLATEDIR%\ftp.htt
  5. -->
  6.  
  7. <HTML>
  8.     <style>
  9.         body        {margin: 0; font: menu; color: windowtext}
  10.         #Panel      {position: absolute; width: 200px; height: 100%; visibility: hidden}
  11.         #Corner     {padding-left: 12px; padding-right: 0px; padding-top: 11px}
  12.         #FolderIcon {width: 32px; height: 32px}
  13.         #FolderName {margin-top: 8px; font: 13pt/13pt; font-weight: bold}
  14.         #LogoLine   {width: 100%; margin-top: 4px; vertical-align: top}
  15.         #Details    {padding-left: 12px; padding-right: 0px; margin-top: 8px}
  16.         #Locked     {vertical-align: baseline}
  17.         #Preview    {}
  18.         .Movie      {width: 120px; height: 136px}
  19.         .Sound      {width: 120px; height: 46px}
  20.         #Thumbnail  {width: 120px; height: 120px}
  21.         .Legend     {margin-left: 12px; margin-right: -12px}
  22.         #PieChart   {width: 120px; height: 60px; margin-top: 10px}
  23.         #FileList   {position: absolute; width: 100%; height: 100%; tabIndex: 1}
  24.         p           {margin-top: 12px}
  25.         p.Half      {margin-top: 6px}
  26.         button      {font: 8pt Tahoma; margin-left: 12px; margin-right: 0px; background: window; color: windowtext}
  27.         input       {font: 8pt Tahoma}
  28.         .Message    {margin-right: 0; padding: 3px; background: infobackground; color: infotext; border: 1px solid lightgrey}
  29.         .accesskey  {}
  30.     </STYLE>
  31.  
  32.     <HEAD>
  33.     <!-- allow references to any resources you might add to the folder -->
  34.     <BASE href="%THISDIRPATH%\">
  35.  
  36.     <SCRIPT LANGUAGE="vbscript">
  37.         Const g_nCR = 13
  38.         Const g_nLF = 10
  39.  
  40.         Function TranslateCRs(strIn)
  41.         Dim strOut
  42.         strOut = ""
  43.  
  44.         While 0 < Len(strIn)
  45.             if Asc(strIn) = g_nCR then
  46.                 strIn = strIn & " "
  47.                 strIn = Right(strIn, Len(strIn) - 1)
  48.             else
  49.                 strOut = strOut & Chr(Asc(strIn))
  50.             end if
  51.  
  52.             strIn = Right(strIn, Len(strIn) - 1)
  53.         Wend
  54.  
  55.         TranslateCRs = strOut
  56.         end Function
  57.     </SCRIPT>
  58.  
  59.     <SCRIPT LANGUAGE="JavaScript">
  60.         // To localize
  61.         var L_Intro_Text    = "";
  62.         var L_Multiple_Text    = " objects selected.";
  63.         var L_AnonymousUserName_Text = "Anonymous";
  64.         var L_MOTDDialogTitle_Text = "The server has provided the following message about using the server:\n\n";
  65.         var L_ServerLabel_Text = "Server: ";
  66.         var L_UserNameLabel_Text = "User Name: ";
  67.  
  68.         var L_TooltipLoginButton_Text = "This button will display the Login dialog to allow you to login under a different username. This is most often needed when the server won't give you access under the current user.";
  69.         var L_ToolTipEmailAddress_Text = "This is the e-mail address that will be provided to the server to identify you when you login anonymously.";
  70.         var L_TooltipPassword_Text = "This password and the user name above will be used to attempt to relog you into the server when you click on the 'Login' button.";
  71.         var L_ToolTipUserName_Text = "Enter a different username and click 'Login' to login as another user.";
  72.         var L_TooltipAnonCheckBox_Text = "Turning this on and clicking the 'Login' button will log you into the server anonymously, which the server may or may not allow. The e-mail address you provide below will be given to the server.";
  73.  
  74.         // Do not localize
  75.         var g_strUserName;
  76.         var g_strPassword;
  77.         var g_strEmailAddress;
  78.         var g_fAnonymousLogin;
  79.         var g_fDelayedLoginInfoInited = 0;
  80.         var g_strAnonymous = "Anonymous";       // Do not localize
  81.  
  82.         function Resize() {
  83.             if (document.body.clientWidth < Panel.style.pixelWidth * 2) {
  84.                 Panel.style.visibility = "hidden";
  85.                 FileList.style.pixelLeft = 0;
  86.                 FileList.style.pixelWidth = document.body.clientWidth;
  87.             } else {
  88.                 Panel.style.visibility = "visible";
  89.                 if (document.dir == "rtl") {
  90.                     FileList.style.pixelLeft = 0;
  91.                 } else {
  92.                     FileList.style.pixelLeft = Panel.style.pixelWidth;
  93.                 }
  94.                 FileList.style.pixelWidth = document.body.clientWidth - Panel.style.pixelWidth;
  95.             }
  96.         }
  97.  
  98.         function Initialize()
  99.         {
  100.             var strMOTD;
  101.  
  102.             // call our Resize() function whenever the window gets resized
  103.             window.onresize = Resize;
  104.             Resize();
  105.             Info.innerHTML = L_Intro_Text;
  106.  
  107.             InitLoginInfo();
  108.             if (1 == DisplayOptions())
  109.                 ToggleOptionsAvailablility();
  110.  
  111.             // fix styles
  112.             var L_SystemFont1_Text = "MS Sans Serif";
  113.             var L_SystemFont2_Text = "MS Shell Dlg";
  114.             var L_SystemFont_Text = "Tahoma, Verdana";
  115.             var tr = document.body.createTextRange();
  116.             if (navigator.cpuClass != "Alpha") {
  117.                 tr.collapse();
  118.                 var actualFont = tr.queryCommandValue("FontName");
  119.                 if (actualFont == L_SystemFont1_Text || actualFont == L_SystemFont2_Text)
  120.                     document.body.style.fontFamily = L_SystemFont_Text;
  121.             } else
  122.                 document.body.style.fontFamily = L_SystemFont_Text;
  123.         }
  124.  
  125.         function DisplayOptions()
  126.         {
  127.             return 0;
  128.         }
  129.  
  130.         function OnMOTDDialog()
  131.         {
  132.             alert(L_MOTDDialogTitle_Text + document.all.ID_MOTD.innerText);
  133.         }
  134.  
  135.         function ToggleOptionsAvailablility()
  136.         {
  137.         }
  138.  
  139.         function InitLoginInfo()
  140.         {
  141.             if (ID_FTPWebView)
  142.             {
  143.         var L_None_Text = "None";
  144.                 strMOTD = TranslateCRs(ID_FTPWebView.MessageOfTheDay);
  145.                 ID_MOTD.innerText = strMOTD;
  146.         ID_MOTD.style.display = ((strMOTD == "") || (strMOTD == L_None_Text)) ? "none" : "";
  147.  
  148.                 document.all.ID_Server.innerText = (L_ServerLabel_Text + ID_FTPWebView.Server);
  149.                 g_strUserName = ID_FTPWebView.UserName;
  150.                 g_fAnonymousLogin = ID_FTPWebView.CurrentLoginAnonymous;
  151.  
  152.                 if (1 == g_fAnonymousLogin)
  153.                     document.all.ID_StaticUserName.innerText = (L_UserNameLabel_Text + g_strAnonymous);
  154.                 else
  155.                     document.all.ID_StaticUserName.innerText = (L_UserNameLabel_Text + g_strUserName);
  156.             }
  157.         }
  158.  
  159.         function InitDelayedLoginInfo()
  160.         {
  161.             g_fDelayedLoginInfoInited = 1;
  162.  
  163.             if (null != ID_FTPWebView)
  164.             {
  165.                 g_strPassword = ID_FTPWebView.Password;
  166.                 g_strEmailAddress = ID_FTPWebView.EmailAddress;
  167.  
  168.                 OnAnonymouseChange();
  169.                 OnUserNameChange();
  170.             }
  171.         }
  172.  
  173.         function EnableDisableLoginButton()
  174.         {
  175.         }
  176.  
  177.         function OnAnonymouseChange()
  178.         {
  179.         }
  180.  
  181.         function OnUserNameChange()
  182.         {
  183.         }
  184.  
  185.         function OnEmailAddressChange()
  186.         {
  187.         }
  188.  
  189.         function DisplayLoginDialog()
  190.         {
  191.         }
  192.  
  193.         function OnWebviewLinkEnter( aLink )
  194.         {
  195.             if( aLink.title )
  196.             {
  197.                 window.status = aLink.title;
  198.             }
  199.             else
  200.             {
  201.                 window.status = "";
  202.             }
  203.             return true;
  204.         }
  205.  
  206.         function OnWebviewLinkExit()
  207.         {
  208.             window.status = "";
  209.             return false;
  210.         }
  211.     </SCRIPT>
  212.  
  213.     <SCRIPT language="JavaScript" for="FileList" event="SelectionChanged">
  214.         // this script updates the left info panel when you select icons
  215.         var folder    = FileList.Folder;
  216.         var data;
  217.         var text;
  218.         var i;
  219.  
  220.         data = FileList.SelectedItems().Count;
  221.         if (data == 0)
  222.         {
  223.             // nothing selected?
  224.             Info.innerHTML = L_Intro_Text;
  225.             return;
  226.         }
  227.         else if (data > 1)
  228.         {
  229.             // more than one item selected?
  230.             text = data + L_Multiple_Text + "<br>";
  231.             if (data <= 16)
  232.             {
  233.                 for (i = 0; i < data; i++)
  234.                 {
  235.                     text += "<br>" + FileList.SelectedItems().Item(i).Name;
  236.                 }
  237.             }
  238.             Info.innerHTML = text + "<br><br>";
  239.             return;
  240.         }
  241.         else if (data == 1)
  242.         {
  243.             Info.innerHTML = "<b>" + FileList.SelectedItems().Item(0).Name + "</b><br><br>";
  244.         }
  245.     </SCRIPT>
  246.  
  247.     <script language="JavaScript">
  248.         function Load() {
  249.  
  250.             Panel.style.overflow = "auto";
  251.             Initialize();
  252.             Resize();
  253.         }
  254.     </script>
  255.  
  256.     <script language="JavaScript" for="WVLink" event="onmouseover">
  257.         return OnWebviewLinkEnter( this );
  258.     </script>
  259.  
  260.     <script language="JavaScript" for="WVLink" event="onfocus">
  261.         return OnWebviewLinkEnter( this );
  262.     </script>
  263.  
  264.     <script language="JavaScript" for="WVLink" event="onmouseout">
  265.         return OnWebviewLinkExit();
  266.     </script>
  267.  
  268.     <script language="JavaScript" for="WVLink" event="onblur">
  269.         return OnWebviewLinkExit();
  270.     </script>
  271.     </HEAD>
  272.  
  273.     <body scroll=no onload=Load()>
  274.         <div id=Panel style="background: window URL(file://%TEMPLATEDIR%/wvleft.gif) no-repeat left top">
  275.             <div id=Corner>
  276.                 <object id=FolderIcon classid="clsid:E5DF9D10-3B52-11D1-83E8-00A0C90DC849" width=32 height=32>
  277.                     <param name="scale" value=100>
  278.                 </object>
  279.                 <br>
  280.                 <div id=FolderName>
  281.                     %THISDIRNAME%
  282.                 </div>
  283.             </div>
  284.             <img id=LogoLine src="%TEMPLATEDIR%\wvline.gif">
  285.             <div id=Details>
  286.  
  287.             <SPAN ID="ID_Server"> </SPAN><BR>
  288.             <SPAN ID="ID_StaticUserName"> </SPAN>
  289.             <BR>
  290.             <BR>
  291.             <ID id=lochack9>
  292.  
  293.             <BR>
  294.  
  295.             <DIV ID="ID_MOTD" CLASS=Message>
  296.             <!-- the message of the day will be inserted here by the script. -->
  297.             </DIV>
  298.             <BR>
  299.             <ID ID=Help>
  300.             <A HREF="javascript:ID_FTPWebView.InvokeHelp()" name="WVLink"> Click here</A> to learn about browsing FTP sites.<BR>
  301.             </ID>
  302.  
  303.             </P>
  304.                 <span id=Info>
  305.                 </span>
  306.             </div>
  307.         </div>
  308.         <object id=FileList tabindex=1 border=0 classid="clsid:1820FED0-473E-11D0-A96C-00C04FD705A2">
  309.         </object>
  310.  
  311.         <OBJECT id="ID_FTPWebView" border=0 tabindex=1 classid="clsid:210DA8A2-7445-11d1-91F7-006097DF5BD4"
  312.         </OBJECT>
  313.  
  314.     </BODY>
  315. </HTML>
  316.  
  317.